#include "Solutions.h"

Solution::Solution()
{
	for(unsigned int i = 0; i < 10; i++)
		this->comb[i] = 0;

	this->signal = 0;
}



void Solution::setComb(int nc, int i)
{
	this->comb[i] = nc;
}

int Solution::getComb(int i)
{ 
	return this->comb[i];
}

int *Solution::getComb()
{
	return this->comb;
}

int Solution::getSignal() 
{
	int intensites[10] = {3, -2, 4, -1, -7, 8, -2, -3, -8, 5};
	for(unsigned int i = 0; i<10; i++)
	{
		this->signal += this->comb[i]*intensites[i];
	}
	return signal;
}



 